/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Font */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Navbar */
.navbar {
  background-color: #fff;
  border-bottom: 2px solid #c20000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  padding: 10px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  height: 50px;
  margin-right: 20px;
}

.nav-center {
  flex: 1;
  display: flex;
  justify-content: center;
}

/* Navigation Links */
.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  padding: 8px 12px;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #c20000;
}

/* Dropdown Menu Styling */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%; /* sits right under the parent */
  left: 0;
  min-width: 200px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  padding: 10px 0;
  list-style: none;
  z-index: 1000;
}

.dropdown-menu li {
  padding: 0;
}

.dropdown-menu li a {
  display: block;
  padding: 10px 20px;
  color: #333;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}

.dropdown-menu li a:hover {
  background-color: #f5f5f5;
  color: #c20000;
}

/* Show dropdown on hover (fix gap issue too) */
.dropdown:hover > .dropdown-menu {
  display: block;
}

/* Prevent dropdown from disappearing when hovering between items */
.dropdown {
  position: relative;
}

.dropdown-menu:hover {
  display: block;
}
/*----------------------*/

.manage-cargo {
  text-align: center;
  padding: 80px 20px;
  background-color: #f9f9f9;
}

.manage-cargo h2 {
  font-size: 2.2rem;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.4;
}

.highlight {
  color: #c20000;
}

.description {
  max-width: 800px;
  margin: 0 auto 40px;
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
}

.freight-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
  text-align: left;
}

.service-item {
  background: #fff0f0;
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.service-item:hover {
  transform: translateY(-5px);
  border-top: 4px solid #c20000;
}

.service-item h3 {
  color: #c20000;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.service-item p {
  color: #444;
  font-size: 0.95rem;
  line-height: 1.5;
}


.elegant-layout .service-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.elegant-layout .service-box {
  background: #fff0f0;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  flex: 1 1 calc(45% - 1rem);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.elegant-layout .service-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
  border-top: 4px solid #c20000;
}

.elegant-layout .service-box h3 {
  color: #c20000;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.elegant-layout .service-box p {
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
}
/*-----------------------------------------*/

/* Container & Layout */
.shipping-section {
  padding: 60px 20px;
}

.shipping-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  align-items: flex-start;
}

.shipping-image {
  flex: 1 1 350px;
  max-width: 500px;
}

.shipping-image img {
  width: 100%;
  height: auto;
  border-radius: 30px;
}

.shipping-content {
  flex: 1 1 500px;
}

/* Title Styles */
.toggle-title {
  font-size: 2rem; /* Besarkan font */
  font-weight: 800;
  margin-bottom: 15px;
  padding: 10px 0;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
}

.toggle-title:hover {
  border-bottom: 2px solid #c20000;
}

/* Custom Color Each */
#international .toggle-title {
  color: #C20000;
}
#domestic .toggle-title {
  color: #8B0000;
}
#cross-border .toggle-title {
  color: #FF6200;
}

/* Description Animation */
.shipping-description {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.6s ease, opacity 0.6s ease, margin-top 0.4s ease;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #333;
  margin-top: 0;
}

.shipping-description.show {
  max-height: 1000px;
  opacity: 1;
  margin-top: 10px;
}

/* Add spacing between blocks */
.shipping-block {
  margin-bottom: 40px;
  padding-bottom: 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .shipping-wrapper {
    flex-direction: column;
  }

  .toggle-title {
    font-size: 1.6rem;
  }
}

.deliver-section {
  text-align: center;
  padding: 60px 20px;
  background: white;
}

.deliver-title {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 15px;
}

.deliver-title .highlight-cargo {
  color: #c20000;
}

.deliver-subtext {
  font-size: 1.1rem;
  color: #555;
  max-width: 600px;
  margin: 0 auto 30px;
}

/* WHY CHOOSE US & WHAT'S INCLUDED STYLES */

.why-choose-us,
/* General Section Header */
.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header span {
  color: #c20000;
  font-weight: bold;
  letter-spacing: 1px;
  font-size: 14px;
  text-transform: uppercase;
}

.section-header h2 {
  font-size: 28px;
  color: #333;
  margin-top: 10px;
}

/* WHY CHOOSE US SECTION */
.why-choose-us {
  padding: 60px 20px;
  background: #fff;
}

.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.service {
  background: #f9f9f9;
  padding: 30px 20px;
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: all 0.3s ease;
}

.service:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  border-top: 3px solid #c20000;
}

.service i {
  font-size: 36px;
  color: #c20000;
  margin-bottom: 15px;
}

.service h3 {
  font-size: 20px;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
}

.service p {
  font-size: 15px;
  color: #666;
  line-height: 1.6;
}

/* WHATS INCLUDED SECTION */
.whats-included {
  background: #f7f7f7;
  padding: 60px 20px;
}

.included-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.included-box {
  background: #fff;
  padding: 30px 20px;
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.included-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  border-top: 3px solid #c20000;
}

.included-box i {
  font-size: 36px;
  color: #c20000;
  margin-bottom: 15px;
}

.included-box h3 {
  font-size: 20px;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
}

.included-box p {
  font-size: 15px;
  color: #666;
  line-height: 1.6;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .section-header h2 {
    font-size: 24px;
  }

  .service,
  .included-box {
    padding: 25px 15px;
  }

  .service i,
  .included-box i {
    font-size: 30px;
  }
}


.section-header h2 {
  font-size: 32px;
  font-weight: 800;
  color: #222;
  max-width: 700px;
  margin: 0 auto 40px;
}

.service-image-layout {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

.service-content-left {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  flex: 1;
  min-width: 300px;
}

.service-image-right {
  flex: 1;
  min-width: 650px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-image-right img {
  width: 100%;
  max-width: 650px;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  object-fit: cover;
}

.service-box {
  background: #fff;
  padding: 25px 20px;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
}

.service-box i {
  font-size: 30px;
  color: #c20000;
  margin-bottom: 10px;
  transition: color 0.3s ease, transform 0.3s ease;
}

.service-box h3 {
  font-size: 18px;
  color: #c20000;
  font-weight: 700;
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.service-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
  border-top: 3px solid #c20000;
}

.service-box:hover i {
  color: #a00000; /* darker red on hover */
  transform: scale(1.1);
}

.service-box:hover h3 {
  color: #a00000;
}


/* Optional responsive tweak */
@media (max-width: 992px) {
  .service-image-layout {
    flex-direction: column;
    align-items: center;
  }

  .service-content-left {
    grid-template-columns: 1fr;
  }

  .service-image-right img {
    max-width: 100%;
  }
}


.cta-section {
  padding: 60px 20px;
  background-color: white;
}

.cta-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  max-width: 1200px;
  margin: auto;
}

.cta-text {
  flex: 1;
  min-width: 300px;
}

.cta-title {
  font-size: 2rem;
  color: #c20000;
  margin-bottom: 15px;
}

.cta-description {
  font-size: 1rem;
  margin-bottom: 25px;
  color: #333;
}

.cta-buttons a {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  margin-right: 15px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.primary-btn {
  background-color: #c20000;
  color: #fff;
}

.primary-btn:hover {
  background-color: #a00000;
}

.secondary-btn {
  background-color: transparent;
  color: #c20000;
  border: 2px solid #c20000;
}

.secondary-btn:hover {
  background-color: #c20000;
  color: #fff;
}

.cta-image {
  flex: 1;
  min-width: 300px;
}

.cta-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.social-icons-home {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
  margin-top: 20px;
}

/*----------chatbox-------*/

    /* Chatbot Bubble Button */
    #chatbot-toggle {
      position: fixed;
      bottom: 20px;
      right: 20px;
      background: #c20000;
      color: #fff;
      border: none;
      border-radius: 50%;
      width: 60px;
      height: 60px;
      font-size: 24px;
      cursor: pointer;
      box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    }

    /* Chatbox */
    #chatbot-box {
      position: fixed;
      bottom: 90px;
      right: 20px;
      width: 320px;
      max-height: 400px;
      background: #fff;
      border: 1px solid #ccc;
      border-radius: 10px;
      display: none;
      flex-direction: column;
      overflow: hidden;
      box-shadow: 0 4px 20px rgba(0,0,0,0.2);
      z-index: 999;
    }

    #chatbot-messages {
      flex: 1;
      overflow-y: auto;
      padding: 10px;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .message {
      display: flex;
      align-items: flex-start;
      gap: 10px;
    }

    .user-message {
      justify-content: flex-end;
    }

    .bot-message {
      justify-content: flex-start;
    }

    .avatar {
      width: 30px;
      height: 30px;
      border-radius: 50%;
    }

    .message-text {
      max-width: 200px;
      padding: 8px 12px;
      border-radius: 15px;
      background-color: #f1f1f1;
      font-size: 14px;
    }

    .user-message .message-text {
      background-color: #c20000;
      color: white;
      border-bottom-right-radius: 0;
    }

    .bot-message .message-text {
      background-color: #f1f1f1;
      border-bottom-left-radius: 0;
    }

    #chatbot-input-container {
      display: flex;
      border-top: 1px solid #ddd;
    }

    #chatbot-input {
      flex: 1;
      border: none;
      padding: 10px;
      font-size: 14px;
      outline: none;
    }

    #chatbot-send {
      background: #c20000;
      color: white;
      border: none;
      padding: 10px 15px;
      cursor: pointer;
    }


/*----------------------*/
.footer {
  background-color: white;
  padding: 40px 20px 20px;
  border-top: 2px solid #c20000; /* line merah */
}

.footer-top {
  text-align: center;
  margin-bottom: 30px;
}
.footer-logo {
  max-width: 150px;
  margin-bottom: 15px;
}
.footer-description {
  font-size: 14px;
  max-width: 500px;
  margin: 0 auto 20px;
}
.social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  font-size: 18px;
}
.social-icons a {
  color: #c20000;
  transition: transform 0.3s ease;
}
.social-icons a:hover {
  transform: scale(1.2);
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
  margin-top: 30px;
}
.footer-column h3 {
  color: #c20000;
  margin-bottom: 10px;
}
.footer-column a {
  display: inline-block;
  margin: 4px 0;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  position: relative;
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-column a {
  display: block;
  margin: 6px 0;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  position: relative;
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-column a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background-color: #c20000;
  transition: width 0.3s ease;
}

.footer-column a:hover {
  color: #c20000;
  transform: translateX(4px);
}

.footer-column a:hover::after {
  width: 100%;
}


.footer-rights {
  text-align: center;
  font-size: 13px;
  margin-top: 40px;
  color: #777;
}